<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:wh="http://java.sun.com/jsf/composite/webhib">

   <ui:composition template="../template.xhtml">
      <ui:define name="title">
         #{msg.title_registerconfirm}
      </ui:define>

      <ui:define name="content">
         <f:event type="preRenderView" listener="#{regconf.registerConfirmListener}"/>

         <div id="registerconfirm-page" class="useradmin-page">
            <h1 class="page-header">#{msg.header_registerconfirm}</h1>
            <wh:pageMessage bean="#{regconf}"/>

            <h:panelGroup id="registerconfirmed-ok-pane" styleClass="input-pane" layout="block" rendered="#{regconf.registerConfirmed}">
               <h:form id="registerconfirmed-ok-form" prependId="false">
                  <div class="text-pre"><p>#{msg.text_registerconfirmed_login}</p></div>
                  <wh:buttonPane>
                     <wh:inputButton id ="registerconfirmed-continue-login-button" action="#{regconf.registerConfirmedContinueLoginAction}" label="#{msg.action_continuelogin}" tabindex="1"/>
                  </wh:buttonPane>
               </h:form>
            </h:panelGroup>
            <h:panelGroup id="registerconfirmed-failure-pane" styleClass="input-pane" layout="block" rendered="#{!regconf.registerConfirmed}">
               <h:form id="registerconfirmed-failure-form" prependId="false">
                  <div class="text-pre"><p>#{msg.text_registerconfirmed_failure}</p></div>
                  <wh:buttonPane>
                     <wh:inputButton id ="registerconfirmed-continue-button" action="#{regconf.registerConfirmedErrorAction}" label="#{msg.action_continue}" tabindex="1"/>
                  </wh:buttonPane>
               </h:form>
            </h:panelGroup>
         </div>

      </ui:define>
   </ui:composition>

</html>

